from fastapi import APIRouter
from tortoise.expressions import Q
from utils.logger import setup_logger

# 创建全局logger
logger = setup_logger()


chart = APIRouter()


@chart.get("/get_chart_data")
async def get_chart_data():
    """
    获取图表数据
    :return:
    """
    return {"data": "chart"}
